﻿#ifndef _UNDOREDO_KEY_EVENT_FILTER_H___
#define _UNDOREDO_KEY_EVENT_FILTER_H___
 
#include "FITK_Kernel/FITKAppFramework/FITKAbstractEventFilter.h"


class UndoRedoKeyEventFilter : public AppFrame::FITKAbstractEventFilter
{
public:
    explicit UndoRedoKeyEventFilter() = default;
    virtual ~UndoRedoKeyEventFilter() = default;

    /**
        * @brief 事件过滤器
        * @param[i]  Object  事件发出对象
        * @param[i]  event   事件对象
        * @author LiBaojun (libaojunqd@foxmail.com)
        * @date 2024-04-30
        */
    virtual void eventFilter(QObject *Object, QEvent *event) override;

private:
    void undo(QObject* obj);
    void redo(QObject* obj);

};


#endif
